package cn.edu.lzu.unitweb.controller;

import cn.edu.lzu.common.assist.ResponseResult;
import cn.edu.lzu.entity.FillSpeItem;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.io.File;

/**
 * @PackageName: cn.edu.lzu.unitweb.controller
 * @ClassName: FillSpeItemController
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/4/7 15:18
 * @Version: 1.0
 */
@Controller
public class FillSpeItemController {

    @ResponseBody
    @RequestMapping("/submitSpeClauseValue")
    public ResponseResult submitSpeClauseValue(FillSpeItem fillSpeItem){
        System.out.println("fillSpeItem = " + fillSpeItem);
        ResponseResult responseResult=new ResponseResult();
        responseResult.setCode(1);
        return responseResult;
    }

    @ResponseBody
    @RequestMapping("/uploadSpePictures")
    public ResponseResult uploadSpePictures(MultipartFile file, Integer fillSpeItemId){
        System.out.println("file = " + file.getOriginalFilename() + ", fillSpeItemId = " + fillSpeItemId);
        return new ResponseResult();
    }
}
